package cn.lhq.controller.activity;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.lhq.bean.ModifyActivityForm;
import cn.lhq.bean.VoteResult;
import cn.lhq.service.ActivityService;

@RequestMapping("/activity")
@Controller
public class ModifyActivityController {
	@Resource
	private ActivityService activityService;
	@RequestMapping("/modifyActivity.do")
	@ResponseBody
	public VoteResult execute(ModifyActivityForm form){
		VoteResult result = null;
		try {
			result = activityService.modifyActivity(form);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}
	
	
}
